/*
 * disk_reader.h
 *
 *  Created on: Feb 19, 2012
 *      Author: albert
 */

#ifndef DISK_READER_H_
#define DISK_READER_H_

#define _GNU_SOURCE
#define SECTOR_SIZE 512
#define MAX_SECTOR 524288000

int disk_file = 0;
int page_size = 0;
int page_limit = 0;
unsigned int * disk_buffer = 0;


void disk_init(long int);
int read_in_page(int* sectors, unsigned long int** bufs, int length);
int cscan_read (int* sectors, unsigned long int** bufs, int length);
int quick_sort(int* sectors, unsigned long int** bufs, int length);


#endif /* DISK_READER_H_ */
